package com.skywolf.chem.common.sysconfig.exception;

import com.skywolf.chem.common.sysconfig.response.IResponseCode;

/**
 * Created by pei_pei on 2020/10/27.
 */

public class BizException extends RuntimeException {
    private Integer code;

    public BizException(IResponseCode responseCode) {
        super(responseCode.getMessage());
        this.code = responseCode.getCode();
    }

    public Integer getCode() {
        return this.code;
    }
}
